#pragma once
#include "DataStructure/Common/Id.h"
#include "DataStructure/Common/Real.h"

SG_DATASTRUCTURE_POST_NAMESPACE_OPEN

struct QUAD4_COMPStrainData
{
    SG::DataStructure::Common::Id   m_eId      = 0;    /// Element identification number
    SG::DataStructure::Common::I64  m_PLY      = 0;    /// Lamina Number
    SG::DataStructure::Common::Real m_X1       = 0.0;  /// Normal-1
    SG::DataStructure::Common::Real m_Y1       = 0.0;  /// Normal-2
    SG::DataStructure::Common::Real m_T1       = 0.0;  /// Shear-12
    SG::DataStructure::Common::Real m_L1       = 0.0;  /// Shear-1Z
    SG::DataStructure::Common::Real m_L2       = 0.0;  /// Shear-2Z
    SG::DataStructure::Common::Id   m_domainId = 0;    /// Domain identifier
};

///< @brief 判断数据是否相等
DECLSPEC bool operator== (const QUAD4_COMPStrainData& val1, const QUAD4_COMPStrainData& val2);

///< @brief 排序使用
DECLSPEC bool operator< (const QUAD4_COMPStrainData& a, const QUAD4_COMPStrainData& b);

SG_DATASTRUCTURE_POST_NAMESPACE_CLOSE
